package com.hnhcyy.goods.api;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hnhcyy.goods.service.SearchService;

import io.swagger.annotations.Api;

@Api(value="/GoodsExtendApi", tags= "商品扩展属性接口")
//@RestController
//@RequestMapping("/goods_extend")
public class GoodsExtendApi {
	
	@Autowired 
	private SearchService searchService;
	
	@GetMapping("/get")
	public HashMap get(int sjid,String spid) {
		return searchService.get(sjid,spid);
	}
	
	@PostMapping("/set")
	public HashMap set(int sjid,String spid) {
		return searchService.get(sjid,spid);
	}
	
	@PostMapping("/del")
	public HashMap del(int sjid,String spid) {
		return searchService.get(sjid,spid);
	}
}
